﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Zdravo.aspx.cs" Inherits="Knjiga.WebForm3" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
  

        <asp:DropDownList ID="ddl1"  OnSelectedIndexChanged="ddlSelected" 
            runat="server" AutoPostBack="true">
        <asp:ListItem> stav 1</asp:ListItem>
        <asp:ListItem> stav 2</asp:ListItem>
        <asp:ListItem> stav 3</asp:ListItem>
        </asp:DropDownList>
        <br />
        <asp:CheckBoxList ID="chbl1" OnSelectedIndexChanged="chblSelected" 
            runat="server" AutoPostBack="true">
        <asp:ListItem>opcija 1 </asp:ListItem>
        <asp:ListItem>opcija 2 </asp:ListItem>
        <asp:ListItem>opcija 3 </asp:ListItem>
        </asp:CheckBoxList>
       
      
        <asp:RadioButtonList ID="rbl1" runat="server" AutoPostBack="true"  onselectedindexchanged="rblSelected">
        <asp:ListItem>musko</asp:ListItem>
        <asp:ListItem>zensko</asp:ListItem>
        </asp:RadioButtonList>

        <asp:RequiredFieldValidator ID="ZahtevaniPol" runat="server" ControlToValidate="rbl1" ErrorMessage="unesite pol"></asp:RequiredFieldValidator>
        <br />

        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        <br />
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" 
        ControlToValidate = "TextBox1" ValidationExpression="\d{5}[-\s-]?(\d{4})?"
        runat="server" ErrorMessage="RegularExpressionValidator">
        Unesite postanski broj od 5 cifara <br />
        </asp:RegularExpressionValidator>
        
        <asp:CompareValidator ID="CompareValidator1" runat="server" 
        ControlToCompare="TextBox1" ControlToValidate="TextBox2" 
        Operator="Equal" Type="String" 
        ErrorMessage="moraju biti iste vrednosti">
        </asp:CompareValidator>
        
        <asp:Label ID="labela" runat="server" /><br />
        <asp:Button ID="Button1" runat="server" Text="Button" />

    </div>
    <asp:HyperLink ID="HyperLink1" NavigateUrl="OmiljeniAuto.aspx" runat="server">Omiljeni Auto</asp:HyperLink>
    </form>
</body>
</html>
